#include <iostream>
using namespace std;
int main()
{
	int n,i=0,s=0;
	cin >> n;// 50
	while(s<=n)
	{
		i++;
		s+=i; 
	}
	cout << i;
	return 0;
}

